This completely depends on where you are camping--not only because local regulations will apply, but also because bears will have different behaviors and in some cases different species.

In the Sierra Nevada in California, bear canisters are required in all the national parks. Only a few backcountry campsites have bear boxes for use by hikers. And we are dealing with black nears there.

I would imagine that in Glacier it's a different scenario with the Grizzlies there.
_________________________
Check our our website: http://www.backpackthesierra.com/

Or just read a good mystery novel set in the Sierra; https://www.amazon.com/Danger-Falling-Rocks-Paul-Wagner/dp/0984884963